package com.example.spring.cors;

import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletResponse;

/**
 * @author: orange
 * @create: 2023-08-03 00:18
 * @description:
 */
@RequestMapping("/cors")
@RestController
public class CorsController {

    @GetMapping(value = "/html")
    public String html(HttpServletResponse response) {
        return "<div>GET</div>";
    }

    @DeleteMapping(value = "/delete")
    public String delete(HttpServletResponse response) {
        return "<div>DELETE</div>";
    }
}
